package com.gp.activity.detail;

import android.app.Activity;
import android.os.Bundle;

import com.aphidmobile.flip.FlipViewController;
import com.gp.adapter.PictureAlbumAdapter;

public class PictureAlbumDetailActivity extends Activity {
    
    //此控件来源第三方库，用于展现图片的翻页效果
    private FlipViewController flipView;

    
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);


        flipView = new FlipViewController(this, FlipViewController.HORIZONTAL);

        flipView.setAdapter(new PictureAlbumAdapter(this));

        setContentView(flipView);
    }

    @Override
    protected void onResume() {
        super.onResume();
        flipView.onResume();
    }

    @Override
    protected void onPause() {
        super.onPause();
        flipView.onPause();
    }
}
